package tech.aistar.corejava.day05;

/**
 * Created by 李雨昂 on 2019/7/19.
 */
public class Clazz {
    private int id;
    private String clazzName;
    private int capacity;


    /**
     * 空参构造
     */
    public Clazz() {

    }

    /**
     * 全参构造
     * @param id
     * @param clazzName
     * @param capacity
     */
    public Clazz(int id, String clazzName, int capacity) {
        this.id = id;
        this.clazzName = clazzName;
        this.capacity = capacity;
    }

    @Override
    public String toString() {
        return "Clazz{" +
                "id=" + id +
                ", clazzName='" + clazzName + '\'' +
                ", capacity=" + capacity +
                '}';
    }

    public static void main(String[] args) {
        Clazz s = new Clazz(10,"lya",5);
        System.out.println(s);
        System.out.println(s.toString());
    }
}
